package aop04;

import java.util.Scanner;

public class SomeServiceImpl implements ISomeService {
    @Override
    public void doSome() throws SomeException, OtherException {
        System.out.println("SomeServiceImpl.doSome()");
        Scanner sc=new Scanner(System.in);

        int n=sc.nextInt();

        if(n==1){
            throw new SomeException();
        }
        if(n==2){
            throw new OtherException();
        }
    }
}
